Crate bevy_ui

source ·
Expand description

This crate contains Bevy’s UI system, which can be used to create UI for both 2D and 3D games

Basic usage

Spawn UI elements with node_bundles::ButtonBundle, node_bundles::ImageBundle, [node_bundles::TextBundle] and node_bundles::NodeBundle This UI is laid out with the Flexbox layout model (see https://cssreference.io/flexbox/)

Modules

  • Configuration for cameras related to UI.
  • This module contains basic node bundles used to build UIs
  • This module contains systems that update the UI when something changes
  • This module contains the basic building blocks of Bevy’s UI

Structs

Enums

  • Defines how each line is aligned within the flexbox.
  • How items are aligned according to the cross axis
  • How this item is aligned according to the cross axis. Overrides AlignItems.
  • Defines the text direction
  • Whether to use a Flexbox layout model.
  • Defines how flexbox items are ordered within a flexbox
  • Defines if flexbox items appear on a single line or on multiple lines
  • Describes whether the node should block interactions with lower nodes
  • Describes what type of input interaction has occurred for a UI node.
  • Defines how items are aligned according to the main axis
  • Whether to show or hide overflowing items
  • The strategy used to position this node
  • The label enum labeling the types of systems in the Bevy UI
  • An enum that describes possible types of value in flexbox layout options
  • Indicates that this Node entity’s front-to-back ordering is not controlled solely by its location in the UI hierarchy. A node with a higher z-index will appear on top of other nodes with a lower z-index.

Constants

Functions

Type Definitions